package com.tansuo365.test1.service.otherservice.impl;

import com.tansuo365.test1.bean.otherbean.Wuliaodanwei;
import com.tansuo365.test1.mapper.othermapper.WuliaodanweiMapper;
import com.tansuo365.test1.service.otherservice.WuliaodanweiService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class WuliaodanweiServiceImpl implements WuliaodanweiService {
    @Resource
    private WuliaodanweiMapper wuliaodanweiMapper;
    @Override
    public Wuliaodanwei findById(int id) {
        return wuliaodanweiMapper.findById(id);
    }

    @Override
    public List<Wuliaodanwei> listAll() {
        return wuliaodanweiMapper.listAll();
    }

    @Override
    public int save(Wuliaodanwei wuliaodanwei) {
        return wuliaodanweiMapper.save(wuliaodanwei);
    }

    @Override
    public int delete(int id) {
        return wuliaodanweiMapper.delete(id);
    }
}
